package com.zsp.comic.service;

import com.zsp.comic.entity.User;

import java.util.Date;

/**
 * @author gan
 * @create 2020-12-03 16:51
 */
public interface UserService {
    User getUserByUsernameAndPassword(String username, String password);

    User getUserByUsername(String username);

    String getUserAuthorityById(Integer id);

    boolean addUser(String username, String password, Date registerTime);

    boolean addUserCollect(String username, Integer comicId);

    boolean deleteUserCollect(String username, Integer comicId);

    boolean updateUser(String username, String password, String newPassword, String confirmNewPassword);
}
